<?php echo $this->render('header.phtml');?>
<div id="main2"> 
      <div id="content"> 
        <div class="blog" > 
          <div class="blogbody"> 

	<?php
    foreach ($this->paginator as $row):
	?>
              <div class="articletext">
                <h3 class="title"><a href="<?=$this->baseUrl?>/article?id=<?=$row["art_id"]?>"><?php echo $row["art_title"]; ?></a></h3>
                <div class="innertext"> 
					摘要: <?php 
					$art_contents = htmlspecialchars_decode($row["art_content"],ENT_QUOTES);
					echo strlen($art_contents)>600 ? remove_html_tag(mb_substr($art_contents,0,200,'utf-8')).'...' : $art_contents ;?> <a href="<?=$this->baseUrl?>/article?id=<?=$row["art_id"]?>">(阅读全文)</a>
                </div>
				 <div class="posted">于 <?php echo date('Y-m-d',$row["art_put_time"]); ?> 发表
                | <a href="<?=$this->baseUrl?>/article?id=<?=$row["art_id"]?>&do=com">我要评论(<?=$row["art_com_count"]?>)</a> | 阅读次数(<?=$row["art_count"]?>)</div>
                <br clear="all" />
              </div>
             
	<?php 
	endforeach;
	?>		  

			 
          </div>
          
		  
<div id="pages">文章总数：<b><?=$this->total_article?></b>篇
<?= $this->paginationControl($this->paginator, 'Elastic', 'pagestyle.phtml'); ?>
</div>

		 <div class="tags" style="margin-top:50px;">
		  网站标签:<br />
		 <?php 
    	foreach ($this->tags as $row):
		?>
		<a href="<?=$this->baseUrl?>/taglist?tid=<?=$row['tag_id']?>"><?php echo $row["tag_name"] ?></a>
		<?php 
		endforeach;
		?>
		  </div>
        </div>
      </div>
      <?php echo $this->render("left.phtml");?>    
   </div>

<?php 
echo $this->render('foot.phtml');
?>
</body> 
</html>